home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / code / p_serlib.sit / Serial Library Source Code / get_write_flags.c < prev    next >
MacBinary  |  1989-07-27  |  1.9 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: get_write_flags.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Jul 27 18:52:46 1989, modified Thu Jul 27 18:52:46 1989, creator 'MPS ', type ASCII, 1391 bytes "get_write_flags.c" , at 0x5ef 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 11 67 65 74 5f 77 72 | 69 74 65 5f 66 6c 61 67 |..get_wr|ite_flag|
|00000010| 73 2e 63 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |s.c.....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 05 6f 00 | 00 01 7e a0 f5 42 be a0 |......o.|..~..B..|
|00000060| f5 42 be 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.B......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 1e b0 00 00 |........|........|
|00000080| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00000090| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2f 0d 2f 2a 09 0d 2f 2a |********|/./*../*|
|000000d0| 09 67 65 74 5f 77 72 69 | 74 65 5f 66 6c 61 67 73 |.get_wri|te_flags|
|000000e0| 2e 63 0d 2f 2a 09 62 79 | 20 41 74 75 6c 20 42 75 |.c./*.by| Atul Bu|
|000000f0| 74 74 65 0d 2f 2a 09 43 | 6f 70 79 72 69 67 68 74 |tte./*.C|opyright|
|00000100| 20 a9 20 31 39 38 39 20 | 62 79 20 4d 69 63 72 6f | . 1989 |by Micro|
|00000110| 73 6f 66 74 20 43 6f 72 | 70 6f 72 61 74 69 6f 6e |soft Cor|poration|
|00000120| 0d 2f 2a 09 41 6c 6c 20 | 52 69 67 68 74 73 20 52 |./*.All |Rights R|
|00000130| 65 73 65 72 76 65 64 0d | 2f 2a 0d 2f 2a 09 76 65 |eserved.|/*./*.ve|
|00000140| 72 73 69 6f 6e 20 31 2e | 30 0d 2f 2a 09 0d 2f 2a |rsion 1.|0./*../*|
|00000150| 09 0d 2f 2a 09 54 68 69 | 73 20 6d 6f 64 75 6c 65 |../*.Thi|s module|
|00000160| 20 70 72 6f 76 69 64 65 | 73 20 61 20 72 6f 75 74 | provide|s a rout|
|00000170| 69 6e 65 20 77 68 69 63 | 68 20 77 69 6c 6c 20 73 |ine whic|h will s|
|00000180| 65 74 20 74 68 65 20 63 | 6f 6e 66 69 67 75 72 61 |et the c|onfigura|
|00000190| 74 69 6f 6e 0d 2f 2a 09 | 66 6c 61 67 73 2e 0d 2f |tion./*.|flags../|
|000001a0| 2a 09 0d 2f 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |*../****|********|
|000001b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2f 0d 0d 2f 2a |********|***/../*|
|000001f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000200| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000210| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000220| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000230| 2a 2a 2a 2a 2a 2a 2f 0d | 2f 2a 0d 2f 2a 09 67 65 |******/.|/*./*.ge|
|00000240| 74 5f 77 72 69 74 65 5f | 66 6c 61 67 73 0d 2f 2a |t_write_|flags./*|
|00000250| 0d 2f 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |./******|********|
|00000260| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000270| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000280| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000290| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2f 0d 0d 76 6f 69 64 |********|*/..void|
|000002a0| 20 67 65 74 5f 77 72 69 | 74 65 5f 66 6c 61 67 73 | get_wri|te_flags|
|000002b0| 28 20 70 73 7a 2c 20 70 | 66 41 64 64 4c 46 2c 20 |( psz, p|fAddLF, |
|000002c0| 70 66 49 67 6e 6f 72 65 | 2c 20 70 66 53 74 72 69 |pfIgnore|, pfStri|
|000002d0| 70 38 42 69 74 2c 20 70 | 66 41 62 73 6f 72 62 45 |p8Bit, p|fAbsorbE|
|000002e0| 63 68 6f 20 29 0d 09 0d | 09 72 65 67 69 73 74 65 |cho )...|.registe|
|000002f0| 72 20 63 68 61 72 09 09 | 09 2a 70 73 7a 3b 09 09 |r char..|.*psz;..|
|00000300| 09 09 09 09 2f 2a 20 73 | 74 72 69 6e 67 20 68 6f |..../* s|tring ho|
|00000310| 6c 64 69 6e 67 20 63 6f | 6e 66 69 67 53 74 72 20 |lding co|nfigStr |
|00000320| 2a 2f 0d 09 42 6f 6f 6c | 65 61 6e 09 09 09 09 09 |*/..Bool|ean.....|
|00000330| 2a 70 66 41 64 64 4c 46 | 3b 09 09 09 09 09 2f 2a |*pfAddLF|;...../*|
|00000340| 20 66 6c 61 67 20 66 6f | 72 20 61 64 64 69 6e 67 | flag fo|r adding|
|00000350| 20 6c 69 6e 65 66 65 65 | 64 73 20 2a 2f 0d 09 42 | linefee|ds */..B|
|00000360| 6f 6f 6c 65 61 6e 09 09 | 09 09 09 2a 70 66 49 67 |oolean..|...*pfIg|
|00000370| 6e 6f 72 65 3b 09 09 09 | 09 09 2f 2a 20 66 6c 61 |nore;...|../* fla|
|00000380| 67 20 66 6f 72 20 69 67 | 6e 6f 72 69 6e 67 20 65 |g for ig|noring e|
|00000390| 73 63 61 70 65 20 63 68 | 61 72 73 20 2a 2f 0d 09 |scape ch|ars */..|
|000003a0| 42 6f 6f 6c 65 61 6e 09 | 09 09 09 09 2a 70 66 53 |Boolean.|....*pfS|
|000003b0| 74 72 69 70 38 42 69 74 | 3b 09 09 09 09 2f 2a 20 |trip8Bit|;..../* |
|000003c0| 66 6c 61 67 20 66 6f 72 | 20 73 74 72 69 70 70 69 |flag for| strippi|
|000003d0| 6e 67 20 68 69 67 68 20 | 62 69 74 20 2a 2f 0d 09 |ng high |bit */..|
|000003e0| 42 6f 6f 6c 65 61 6e 09 | 09 09 09 09 2a 70 66 41 |Boolean.|....*pfA|
|000003f0| 62 73 6f 72 62 45 63 68 | 6f 3b 09 09 09 09 2f 2a |bsorbEch|o;..../*|
|00000400| 20 66 6c 61 67 20 66 6f | 72 20 77 61 69 74 69 6e | flag fo|r waitin|
|00000410| 67 20 66 6f 72 20 65 63 | 68 6f 20 66 72 6f 6d 20 |g for ec|ho from |
|00000420| 68 6f 73 74 20 2a 2f 0d | 0d 7b 0d 09 77 68 69 6c |host */.|.{..whil|
|00000430| 65 28 20 2a 70 73 7a 20 | 21 3d 20 30 20 29 20 7b |e( *psz |!= 0 ) {|
|00000440| 0d 09 09 73 77 69 74 63 | 68 28 20 2a 70 73 7a 20 |...switc|h( *psz |
|00000450| 29 20 7b 0d 09 09 09 63 | 61 73 65 20 27 45 27 3a |) {....c|ase 'E':|
|00000460| 0d 09 09 09 09 2a 70 66 | 41 62 73 6f 72 62 45 63 |.....*pf|AbsorbEc|
|00000470| 68 6f 20 3d 20 66 54 72 | 75 65 3b 0d 09 09 09 09 |ho = fTr|ue;.....|
|00000480| 62 72 65 61 6b 3b 0d 09 | 09 09 63 61 73 65 20 27 |break;..|..case '|
|00000490| 65 27 3a 0d 09 09 09 09 | 2a 70 66 41 62 73 6f 72 |e':.....|*pfAbsor|
|000004a0| 62 45 63 68 6f 20 3d 20 | 66 46 61 6c 73 65 3b 0d |bEcho = |fFalse;.|
|000004b0| 09 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 09 63 61 |....brea|k;....ca|
|000004c0| 73 65 20 27 4a 27 3a 0d | 09 09 09 09 2a 70 66 41 |se 'J':.|....*pfA|
|000004d0| 64 64 4c 46 20 3d 20 66 | 54 72 75 65 3b 0d 09 09 |ddLF = f|True;...|
|000004e0| 09 09 62 72 65 61 6b 3b | 0d 09 09 09 63 61 73 65 |..break;|....case|
|000004f0| 20 27 6a 27 3a 0d 09 09 | 09 09 2a 70 66 41 64 64 | 'j':...|..*pfAdd|
|00000500| 4c 46 20 3d 20 66 46 61 | 6c 73 65 3b 0d 09 09 09 |LF = fFa|lse;....|
|00000510| 09 62 72 65 61 6b 3b 0d | 09 09 09 63 61 73 65 20 |.break;.|...case |
|00000520| 27 49 27 3a 0d 09 09 09 | 09 2a 70 66 49 67 6e 6f |'I':....|.*pfIgno|
|00000530| 72 65 20 3d 20 66 54 72 | 75 65 3b 0d 09 09 09 09 |re = fTr|ue;.....|
|00000540| 62 72 65 61 6b 3b 0d 09 | 09 09 63 61 73 65 20 27 |break;..|..case '|
|00000550| 69 27 3a 0d 09 09 09 09 | 2a 70 66 49 67 6e 6f 72 |i':.....|*pfIgnor|
|00000560| 65 20 3d 20 66 46 61 6c | 73 65 3b 0d 09 09 09 09 |e = fFal|se;.....|
|00000570| 62 72 65 61 6b 3b 0d 09 | 09 09 63 61 73 65 20 27 |break;..|..case '|
|00000580| 41 27 3a 0d 09 09 09 09 | 2a 70 66 53 74 72 69 70 |A':.....|*pfStrip|
|00000590| 38 42 69 74 20 3d 20 66 | 54 72 75 65 3b 0d 09 09 |8Bit = f|True;...|
|000005a0| 09 09 62 72 65 61 6b 3b | 0d 09 09 09 63 61 73 65 |..break;|....case|
|000005b0| 20 27 61 27 3a 0d 09 09 | 09 09 2a 70 66 53 74 72 | 'a':...|..*pfStr|
|000005c0| 69 70 38 42 69 74 20 3d | 20 66 46 61 6c 73 65 3b |ip8Bit =| fFalse;|
|000005d0| 0d 09 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 7d 0d |.....bre|ak;...}.|
|000005e0| 09 09 70 73 7a 2b 2b 3b | 0d 09 7d 0d 7d 0d 0d 00 |..psz++;|..}.}...|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 11 67 65 74 5f 77 72 69 | 74 65 5f 66 6c 61 67 73 |.get_wri|te_flags|
|00000640| 2e 63 02 00 00 00 54 45 | 58 54 4d 50 53 20 00 00 |.c....TE|XTMPS ..|
|00000650| 00 00 54 45 58 54 4d 50 | 53 20 00 00 01 40 00 00 |..TEXTMP|S ...@..|
|00000660| 00 00 4b 33 00 00 00 00 | 00 00 00 00 00 00 00 00 |..K3....|........|
|00000670| 00 00 a0 d5 53 cd 00 00 | 05 6f 00 00 01 7e 00 00 |....S...|.o...~..|
|00000680| 00 00 00 00 00 00 00 00 | ff ff ff ff 00 00 00 20 |........|....... |
|00000690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 2a 2a 2a |...H..Mo|naco.***|
|00000710| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000720| 2f 0d 2f 2a 09 0d 00 06 | 00 04 00 2c 01 fd 00 86 |/./*....|...,....|
|00000730| 02 cd 00 2c 01 fd 00 86 | 02 cd a0 f4 c9 38 00 00 |...,....|.....8..|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|00000750| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 28 ed 7c |...L...L|...2.(.||
|00000760| 0a a8 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00000770| 00 0a 03 ed ff ff 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+